package com.lzw.kotdemo.bean

import com.lzw.kotdemo.bean.ForecastRquest
import com.lzw.kotdemo.`interface`.Command

/**KotlinDemo
 * Created by lzw on 2019/1/2. 16:28:38
 * 邮箱：632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
class RequestForecastCommand(val zipCode:String):Command<ForecastList>{
    override fun execute(): ForecastList {
        val forecastRequest = ForecastRquest(zipCode)
        return ForecastDataMapper().convertFromDataModel(forecastRequest.execute())
    }

}